package com.wing.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.order.model.entity.OrderReceiveLoad;
import com.wing.order.model.request.OrderReceiveLoadForm;
import com.wing.order.model.response.OrderReceiveLoadVO;
import com.wing.order.model.response.OrderReceiveUnloadVO;

import java.util.List;
import java.util.Map;

/**
 * 上货数量-Service
 *
 * @author
 */
public interface OrderReceiveLoadService extends IService<OrderReceiveLoad> {

    /**
     * 添加
     *
     * @param orderReceiveLoadForm
     * @return
     */
    int add(OrderReceiveLoadForm orderReceiveLoadForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<OrderReceiveLoadVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<OrderReceiveLoadVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    OrderReceiveLoadVO get4appById(Long id);


    void load(OrderReceiveLoadForm orderReceiveLoadForm);

    /**
     * 上货记录导出
     * @param params
     * @return
     */
    List<OrderReceiveLoadVO> ecxportList(Map<String, Object> params);

    /**
     * 下货记录导出
     * @param params
     * @return
     */
    List<OrderReceiveUnloadVO> ecxportUnloadList(Map<String, Object> params);

}
